<template>
  <div></div>
</template>

<script>
export default {
  data() {
    return {
      msg: '233'
    }
  }
}
</script>

<style lang='less' scope>
/* pages/cart/index.wxss */
page {
  padding-bottom: 90rpx;
}

// 地址
.address {
  padding: 20rpx;

  // 按钮--添加地址
  button {
    width: 60%;
  }

  .address_detail {
    width: 100%;
    display: flex;
    font-size: 28rpx;

    .user_info {
      flex: 5;
    }

    .user_phone {
      flex: 3;
      text-align: center;
    }
  }
}

// 购物车区域
.cart_content {
  .cart_title {
    padding: 20rpx;
    font-size: 36rpx;
    color: var(--themeColor);
    border-top: 1rpx solid currentColor;
    border-bottom: 1rpx solid currentColor;
  }

  .cart_main {
    width: 100%;

    .cart_item {
      padding: 10px;
      display: flex;
      border-bottom: 1px solid #ccc;

      .checkbox_wrap {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
      }

      .cart_pic {
        flex: 2;
        display: flex;
        flex-direction: column;
        justify-content: center;

        image {
          width: 80%;
        }
      }

      .cart_info {
        flex: 4;
        display: flex;
        // 上下排
        flex-direction: column;
        justify-content: space-around;
        align-items: center;

        // 上 - 名字
        .goods_name {
          display: -webkit-box;
          overflow: hidden;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
          color: #666;
        }

        // 下 - 价格
        .goods_price_wrap {
          width: 100%;
          display: flex;
          justify-content: space-between;

          // 价格数字
          .goods_price {
            color: var(--themeColor);
            font-size: 34rpx;
          }

          // 增减按钮
          .goods_tool {
            display: flex;
            justify-content: center;
            align-items: center;

            .btn {
              width: 55rpx;
              height: 55rpx;
              display: flex;
              justify-content: center;
              align-items: center;
              border: 1rpx solid #ccc;
            }

            .goods_num {
              width: 55rpx;
              height: 55rpx;
              display: flex;
              justify-content: center;
              align-items: center;
            }
          }
        }
      }
    }
  }
}

// 底部
.footer_tool {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 90rpx;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;

  // 左
  .chexk_all_wrap {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  // 中
  .total_price_wrap {
    flex: 4;
    text-align: right;
    padding-right: 15rpx;

    .total_price {
      .price_text {
        color: var(--themeColor);
        font-size: 34rpx;
        font-weight: 600;
      }
    }

    .yunfei {
    }
  }

  // 右
  .total_pay_wrap {
    flex: 3;
    background-color: var(--themeColor);
    height: 100%;
    color: #fff;
    font-size: 32rpx;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
</style>